package edu.ustc.iproject.action.student;

import com.opensymphony.xwork2.ActionSupport;
import java.util.List;
import java.util.Map;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

import edu.ustc.iproject.bean.Student;
import edu.ustc.iproject.service.StudentService;

public class deleteStudent extends ActionSupport {
	//123
	private Student student;
	
	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	private StudentService service;
		
	public StudentService getService() {
		return service;
	}

	public void setService(StudentService service) {
		this.service = service;
	}

	@Override
	public String execute() throws Exception
	{
		System.out.println("deletestudent1 Stu_id():"+student.getStu_id());
		
		this.service.deleteStudent(student);
		
		System.out.println("deletestudent2");
		
		return SUCCESS;
	}

}
